Skip to content

Release 1359.0.0 - #11029

Merged
abretonc7s merged 7 commits into
mainfrom
release/1359.0.0
Oct 23, 2026
Merged

abretonc7s merged 7 commits into
mainfrom
release/1359.0.0

Conversation

@abretonc7s

@abretonc7s abretonc7s commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Explanation

Major release of @metamask/perps-controller (21.0.0 → 22.0.0).

  • Breaking: testnet deposit and withdrawal routes use Arbitrum Sepolia USDC2 (0x1baAbB04529D43a73232B713C0FE471f7c7334d5). USDC_ARBITRUM_TESTNET_ADDRESS and HYPERLIQUID_ASSET_CONFIGS.usdc.testnet change to that address, and withdraw rejects the previous testnet asset ID. depositWithConfirmation prepares an Arbitrum Sepolia transfer to the Hyperliquid testnet bridge. (#10991)
  • TrackingData, TPSLTrackingData, and WithdrawParams accept an optional environmentType. Events that already copy attribution include environment_type when it is set. (#10899)
  • New export @metamask/perps-controller/providers/lighter, plus optional LighterCredentials.loadProvider, so a web client can bundle Lighter itself. switchProvider('lighter') reports why the provider failed to load. A missing Lighter module is debug-logged instead of sent through logger.error. (#10996)
  • The closePositions summary event includes order_type: 'market'. (#11027)
  • Engines allow Node.js 26. (#10981)

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

Note

Medium Risk
Major perps-controller release with breaking testnet token/bridge behavior; this PR only bumps versions but consumers picking up 22.0.0 inherit that risk.

Overview
Monorepo release 1359.0.0 that publishes @metamask/perps-controller 22.0.0 and bumps @metamask/transaction-pay-middleware to depend on ^22.0.0 (plus yarn.lock and root package version).

The diff is mostly versioning and changelog housekeeping; the shipped 22.0.0 behavior (already merged) includes a breaking testnet USDC2 / Arbitrum Sepolia deposit path change, optional environmentType on perps tracking/withdraw params, Lighter loadProvider + public provider export, closePositions analytics order_type: 'market', and Node.js 26 engine support.

Reviewed by Cursor Bugbot for commit 8356d7d. Bugbot is set up for automated code reviews on this repo. Configure here.

@abretonc7s
abretonc7s requested review from a team as code owners October 23, 2026 08:45
@abretonc7s
abretonc7s enabled auto-merge October 23, 2026 08:47
@metamask-ci

This comment has been minimized.

@abretonc7s
abretonc7s disabled auto-merge October 23, 2026 08:54
@abretonc7s
abretonc7s enabled auto-merge October 23, 2026 08:59
@abretonc7s abretonc7s changed the title Release/1359.0.0 Release 1359.0.0 Oct 23, 2026
@abretonc7s

Copy link
Copy Markdown
Contributor Author

@metamaskbot update-changelogs

@metamask-ci

metamask-ci Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

✅ Changelogs updated and pushed.

@abretonc7s abretonc7s added the release:keep-open Prevent auto-close of inactive release/* PRs (3h) label Oct 23, 2026
@abretonc7s
abretonc7s added this pull request to the merge queue Oct 23, 2026
Merged via the queue into main with commit 0597390 Oct 23, 2026
52 checks passed
@abretonc7s
abretonc7s deleted the release/1359.0.0 branch October 23, 2026 09:35
@OGPoyraz OGPoyraz mentioned this pull request Oct 27, 2026
1 of 4 tasks
@OGPoyraz OGPoyraz mentioned this pull request Oct 27, 2026
1 of 4 tasks
gaohan1994 pushed a commit to gaohan1994/core that referenced this pull request Oct 28, 2026
## Explanation

Release `1368.0.0` with a major version bump for:

- **`@metamask/transaction-pay-middleware`** `1.0.0` → `2.0.0`

### `@metamask/transaction-pay-middleware@2.0.0`

**Breaking:** `wallet_pay` now selects the requested account before
adding the transaction, once the request has passed every check
([MetaMask#11109](MetaMask#11109))
- The messenger must now allow `AccountsController:getAccountByAddress`,
`AccountsController:getSelectedAccount` and
`AccountTreeController:setSelectedAccountGroupByAccountId`.
- A request whose `from` is not a known account is rejected with `4100`.

Other changes:
- Add support for Node.js 26
([MetaMask#10981](MetaMask#10981))
- Accept a zero `amount` for `perpsWithdraw`, which opens the
confirmation without a prefilled amount; adds optional `allowZeroAmount`
to `WalletPayFlow`
([MetaMask#11114](MetaMask#11114))
- Add dependencies `@metamask/accounts-controller` (`^40.1.0`) and
`@metamask/account-tree-controller` (`^11.2.0`)
([MetaMask#11109](MetaMask#11109))
- Bump `@metamask/perps-controller` from `^21.0.0` to `^22.0.0`
([MetaMask#11029](MetaMask#11029))
- Bump `@metamask/utils` from `^12.0.0` to `^12.0.1`
([MetaMask#11107](MetaMask#11107))

### Dependency updates

No packages in the monorepo depend on
`@metamask/transaction-pay-middleware`, so there are no downstream range
updates. All upstream dependencies are already at their released
versions and were marked `intentionally-skip`.

## References

- [MetaMask#11109](MetaMask#11109) — select the
requested account for `wallet_pay`
- [MetaMask#11114](MetaMask#11114) — accept a zero
amount for `perpsWithdraw`

## Checklist

- [ ] I've updated the test suite for new or updated code as appropriate
- [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [x] I've communicated my changes to consumers by [updating changelogs
for packages I've
changed](https://github.com/MetaMask/core/tree/main/docs/processes/updating-changelogs.md)
- [ ] I've introduced [breaking
changes](https://github.com/MetaMask/core/tree/main/docs/processes/breaking-changes.md)
in this PR and have prepared draft pull requests for clients and
consumer packages to resolve them


<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Version and changelog edits only; no application code changes in this
diff.
> 
> **Overview**
> Cuts **monorepo release `1368.0.0`** and publishes
**`@metamask/transaction-pay-middleware@2.0.0`** by bumping root and
package versions and moving unreleased changelog entries into a
**`[2.0.0]`** section with updated compare links.
> 
> The documented **2.0.0** behavior (already merged elsewhere) includes
a **breaking** change: `wallet_pay` selects the `from` account before
enqueueing the transaction, with new messenger actions and `4100` for
unknown accounts; plus Node 26 support, optional zero `amount` for
`perpsWithdraw` via `allowZeroAmount`, and dependency bumps. No other
monorepo packages declare a dependency on this middleware, so this PR
does not update downstream version ranges.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
e9c6ee0. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:keep-open Prevent auto-close of inactive release/* PRs (3h)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants